package com.jumper.study.common.api;

import java.util.List;

public class SortField {
    private String fieldName;

    private SortType sortType;

    private List<String> allowFields;

    public SortField(String fieldName, SortType sortType) {
        this.fieldName = fieldName;
        this.sortType = sortType;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public SortType getSortType() {
        return sortType;
    }

    public void setSortType(SortType sortType) {
        this.sortType = sortType;
    }

    public List<String> getAllowFields() {
        return allowFields;
    }

    public void setAllowFields(List<String> allowFields) {
        this.allowFields = allowFields;
    }
}
